-- steel_door.lua
-- Created by dengc Jun/26/2016
-- 钢铁之门BUFF光效

return {
    onDestory = function()    
        -- 当前场上存活的怪物播放减益光效
        local monster;
        local monsterGrid;
        local grids = DungeonM.getCurrentDungeon() or {};
        for _, grid in pairs(grids) do
            monster = grid.monster;
            if grid:isOpened() and monster and not monster:isDead() then
                monsterGrid = UIDungeonMgr:getCurLevel().grids[monster:getPos()]; 
                playAddDeBuffEffect(monsterGrid, DEBUFF_TYPE_ATTACK);
            end
        end
    end,
};
